local sanbanfu = fk.CreateSkill {
  name = "lingling__sanbanfu",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
  ["lingling__sanbanfu"] = "三板斧",
  [":lingling__sanbanfu"] = "锁定技，你的攻击范围+1；当你使用【杀】造成伤害后，你摸三张牌并翻面。",
}

sanbanfu:addEffect(fk.Damage, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(sanbanfu.name) and
      data.card and data.card.trueName == "slash"
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(3, sanbanfu.name)
    if not player.dead then
      player:turnOver()
    end
  end,
})

sanbanfu:addEffect("atkrange", {
  correct_func = function(self, from, to)
    if from:hasSkill(sanbanfu.name) then
      return 1
    end
  end,
})

return sanbanfu
